package com.notary.data.bean;

import java.io.Serializable;
import java.util.List;

public class CompanyVO implements Serializable {

    private String legalcard;

    private String legalname;

    private String qiyemingcheng;

    private String qiyeaddress;

    private String card;

    private String cardpic;

    private String fujian;

    private String dailiname;

    private String dailicard;

    private String phone;

    private String email;

    private String letter;

    String url = "http://sxgzccdn.yingnuoqian.cn";
    String urls = "https://sxgongzhen.oss-cn-hangzhou.aliyuncs.com";

    public String getLegalcard() {
        return legalcard;
    }

    public void setLegalcard(String legalcard) {
        this.legalcard = legalcard;
    }

    public String getLegalname() {
        return legalname;
    }

    public void setLegalname(String legalname) {
        this.legalname = legalname;
    }

    public String getQiyemingcheng() {
        return qiyemingcheng;
    }

    public void setQiyemingcheng(String qiyemingcheng) {
        this.qiyemingcheng = qiyemingcheng;
    }

    public String getQiyeaddress() {
        return qiyeaddress;
    }

    public void setQiyeaddress(String qiyeaddress) {
        this.qiyeaddress = qiyeaddress;
    }

    public String getCard() {
        return card;
    }

    public void setCard(String card) {
        this.card = card;
    }

    public String getCardpic() {
        return cardpic;
    }

    public void setCardpic(String cardpic) {

        if (cardpic.indexOf(url) == 0) {
            this.cardpic = cardpic.replace(url, urls);
        } else {
            this.cardpic = cardpic;
        }


    }

    public String getFujian() {
        return fujian;
    }

    public void setFujian(String fujian) {
        this.fujian = fujian;
    }

    public String getDailiname() {
        return dailiname;
    }

    public void setDailiname(String dailiname) {
        this.dailiname = dailiname;
    }

    public String getDailicard() {
        return dailicard;
    }

    public void setDailicard(String dailicard) {
        this.dailicard = dailicard;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getLetter() {
        return letter;
    }

    public void setLetter(String letter) {
        this.letter = letter;
    }

    @Override
    public String toString() {
        return "CompanyVO{" +
                "legalcard='" + legalcard + '\'' +
                ", legalname='" + legalname + '\'' +
                ", qiyemingcheng='" + qiyemingcheng + '\'' +
                ", qiyeaddress='" + qiyeaddress + '\'' +
                ", card='" + card + '\'' +
                ", cardpic='" + cardpic + '\'' +
                ", fujian=" + fujian +
                ", dailiname='" + dailiname + '\'' +
                ", dailicard='" + dailicard + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", letter='" + letter + '\'' +
                ", url='" + url + '\'' +
                ", urls='" + urls + '\'' +
                '}';
    }
}
